import 'package:massagist/generated/json/base/json_field.dart';
import 'package:massagist/generated/json/path_model_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class PathModelEntity {
	late String id;
	late String line;
	late String icon;
	late List<PathModelUsers> users;

	PathModelEntity();

	factory PathModelEntity.fromJson(Map<String, dynamic> json) => $PathModelEntityFromJson(json);

	Map<String, dynamic> toJson() => $PathModelEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class PathModelUsers {
	late String id;
	late String icon;
	late String name;
	late int age;
	late int height;
	late String sex;
	late String introduce;
	late String weight;
	late List<String> scenic;
	late List<String> others;

	PathModelUsers();

	factory PathModelUsers.fromJson(Map<String, dynamic> json) => $PathModelUsersFromJson(json);

	Map<String, dynamic> toJson() => $PathModelUsersToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}